package com.xk.androiddemo.model;

import androidx.room.Entity;
import androidx.room.PrimaryKey;

import java.util.ArrayList;
import java.util.List;

@Entity(tableName = "monitoring_data")
public class MonitoringData {
    @PrimaryKey(autoGenerate = true)
    private long id;
    // 燃气压力数据
    private String gasPressureTime;
    private double gasPressureValue;

    // 温度数据
    private double temperatureValue;

    // 流量数据
    private String flowRateValue;

    // 饼图数据


    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    // 构造器（可以根据需要添加更多构造器）
    public MonitoringData(String gasPressureTime, double gasPressureValue, double temperatureValue,
                          String flowRateValue) {
        this.gasPressureTime = gasPressureTime;
        this.gasPressureValue = gasPressureValue;
        this.temperatureValue = temperatureValue;
        this.flowRateValue = flowRateValue;

    }

    // Getter 和 Setter 方法...
    public String getGasPressureTime() {
        return gasPressureTime;
    }

    public void setGasPressureTime(String gasPressureTime) {
        this.gasPressureTime = gasPressureTime;
    }

    public double getGasPressureValue() {
        return gasPressureValue;
    }

    public void setGasPressureValue(double gasPressureValue) {
        this.gasPressureValue = gasPressureValue;
    }

    public double getTemperatureValue() {
        return temperatureValue;
    }

    public void setTemperatureValue(double temperatureValue) {
        this.temperatureValue = temperatureValue;
    }

    public String getFlowRateValue() {
        return flowRateValue;
    }

    public void setFlowRateValue(String flowRateValue) {
        this.flowRateValue = flowRateValue;
    }




}
